/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.facade.main.httpunit;

/**
 *
 * @author Administrator
 */
public class GeneralHeader{

    private String appid;
    private String timestamp;
    private String sign;
    
    /**
     * @return the appid
     */
    public String getAppid() {
        return appid;
    }
    /**
     * @param appid the appid to set
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * @return the timestamp
     */
    public String getTimestamp() {
        return timestamp;
    }

    /**
     * @param timestamp the timestamp to set
     */
    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    /**
     * @return the sign
     */
    public String getSign() {
        return sign;
    }

    /**
     * @param sign the sign to set
     */
    public void setSign(String sign) {
        this.sign = sign;
    }
    
    //构造方法
    public GeneralHeader(String queryString)
    {
        this.appid = HttpProperty.APPID;
        this.timestamp = getTimestamp().toString();
        this.sign = HttpHelper.getAesSign(queryString);
    }
}
